<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // let ldh={name:'劉德華',age:50}
        // function  getSay() {
        //     console.log('会广东话 小小意思')
        // }


        // getSay()


        // let ldh={
        //     name:'马德华',
        //     age:50,
        //     sayHi:function(){
        //         console.log('你好')
        //     }
        // }

         let  ldh={
            name:'马德华',
            age:50,
            sayHi:()=>{
                console.log('你好')
            }
         }

         console.log(ldh)

         let  ldh1={
            name:'马德华',
            age:50,
            sayHi(){
                console.log('你好')
            }
         }
         console.log(ldh1)


    </script>
</body>
</html>